Developer Documentation
PATH  WebObjects 4.5 Documentation > Getting Started With Direct to Java Client

   

Configuring the Customer Form Window

All the Customer properties are property keys. This is fine; users need to be able to edit all of a customer's data. However, the properties are ordered poorly. A customer's name should come first, and the components of a customer's address should be grouped together and ordered so they appear as a proper address.

  1. Order the Customer form property keys as follows: firstName, lastName, memberSince, phone, streetAddress, city, state, zip, creditCard, rentals.

  2. Examine the Credit Card pane at the bottom of the Customer window.

    The property keys are poorly ordered, and the "Num" in the "Authorization Num" label should be spelled out.

  3. Using the Properties Assistant, order CreditCard's form property keys as: cardNumber, expirationDate, limit, authorizationNum, authorizationDate, customer.

    Note that customer is a to-one relationship from CreditCard to Customer. Ordinarily, a to-one relationship is represented in a form, but customer isn't represented here. That's because Direct to Java Client filters the customer property key out of the user interface rather than display it recursively. Since the CreditCard form is contained within a Customer form, Customer information is already displayed. This feature is called entity hierarchy filtering.

  4. In the Widgets pane of the Assistant, change the authorizationNum label to "Authorization Number."

  5. Examine the Rentals pane.

    The Rentals pane looks OK, so move on to the next form window.


© 1999 Apple Computer, Inc. – (Draft. Last updated 05 Jan 00)